<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Banner广告</title>
<link rel="stylesheet" type="text/css" href="../img/base.css">
<script type="text/javascript" src="../js/jquery-1.8.2.min.js"></script>
<script language="javascript">
function sell_film()
{
	$('#type_op').val('sell_film');
}

function will_film()
{
	$('#type_op').val('will_film');
}
</script>
</head>
<body leftmargin="8" topmargin="8" background='../img/allbg.gif'>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td align='center' valign='top'>
		    <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA">
				<form method="post" action="film_rank.php" >
            	<tr>
                	<td height="28" background="../img/tbg.gif">
						<input type="hidden" value="" name="op" id="type_op" />
						<input type="submit" class="coolbg np" value="热映电影" onclick="sell_film()" />
						<input type="submit" class="coolbg np" value="即将上映电影" onclick="will_film()" />
                    </td>
                </tr>
				</form>
            </table>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr bgcolor="#FFFFFF">
                	<td height="4"></td>
                </tr>
			</table>
                

			<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA">
				<tr bgcolor="#E7E7E7">
					<td height="24" colspan="9" background="../img/tbg.gif"><font color="red"><{$option}></font>电影列表</td>
				</tr>
                <tr align="center" bgcolor="#FAFAF1" height="22">
					<td width="">电影</td>
					<td width="10%">导演</td>
                    <td width="15%">排列顺序</td>
                </tr>
				
                <form action="film_rank.php" method="post" name="frm" id="frm" ">
				<{foreach from=$rank_list item=rank}>
                <tr align='center' bgcolor="#FFFFFF"  onMouseMove="javascript:this.bgColor='#f4fbf4';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td><{$rank.title}></td>
					<td><{$rank.director}></td>
					<td><input type="text" value="<{$rank.rank}>" name="all_rank[<{$rank.rank_id}>]" style="width:40px;" /></td>
                </tr>
                <{/foreach}>
                	
                <tr bgcolor="#FAFAF1">
                	<td height="24" colspan="15">
					<input type="hidden" value="save_rank" name="op" />
					<input type="hidden" value="<{$type_op}>" name="type_op" />
					<input type="submit" class="coolbg np" value="保存" />
                    </td>
                </tr>
				</form>
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                	<td height="4"></td>
                </tr>
                <tr bgcolor="#FFFFFF">
                	<td height="26">
					</td>
                </tr>
				<tr>
					<td colspan="2" height="4"></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</body>
</html>